/**
 * Program that prints a pattern to the console.
 */
public class PrintPattern {
    public static final int SIZE = 3;

    public static void main(String[] args) {
        // Print two copies of the "mountain" pattern, followed by two
        // copies of the "valley" pattern, separated by horizontal lines
        printHorizontalLine();
        printMountain();
        printMountain();
        printHorizontalLine();
        printValley();
        printValley();
        printHorizontalLine();
    }


    // --------------------------------
    // ----- ENTER YOUR CODE HERE -----
    // --------------------------------

    public static void printHorizontalLine() {
        System.out.println("+------+");
    }
    public static void printMountain() {
        System.out.println("|  ^^  |");
        System.out.println("| ^  ^ |");
        System.out.println("|^    ^|");
        System.out.println("|  ^^  |");
        System.out.println("| ^  ^ |");
        System.out.println("|^    ^|");
    }
    public static void printValley() {
        System.out.println("|v    v|");
        System.out.println("| v  v |");
        System.out.println("|  vv  |");
        System.out.println("|v    v|");
        System.out.println("| v  v |");
        System.out.println("|  vv  |");
    }
     
    // --------------------------------
    // --------- END USER CODE --------
    // --------------------------------


}

              